package com.gzk.oeno.tech.ui;

import javax.swing.JInternalFrame;

import com.gzk.utils.data.IdObject;

public abstract class IdInternalFrame extends JInternalFrame implements IdObject<String>{

	
	
	public IdInternalFrame() {
		super();
	}

	public IdInternalFrame(String title, boolean resizable, boolean closable,
			boolean maximizable, boolean iconifiable) {
		super(title, resizable, closable, maximizable, iconifiable);
	}

	public IdInternalFrame(String title, boolean resizable, boolean closable,
			boolean maximizable) {
		super(title, resizable, closable, maximizable);
	}

	public IdInternalFrame(String title, boolean resizable, boolean closable) {
		super(title, resizable, closable);
	}

	public IdInternalFrame(String title, boolean resizable) {
		super(title, resizable);
	}

	public IdInternalFrame(String title) {
		super(title);
	}

	@Override
	public void setId(String key) {
		return;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + getId().hashCode();
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IdInternalFrame other = (IdInternalFrame) obj;
		return getId().equals(other.getId());
	}
	
	

}
